using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DomainLayer.Data.Entities;

namespace Infrastructure.Data.Mapping
{
	public class FMS_FormSubjectMap : EntityTypeConfiguration<FMS_FormSubject>
	{
		public FMS_FormSubjectMap()
		{
			// Primary Key
			this.HasKey(t => t.ID);

			// Properties
			// Table & Column Mappings
			this.ToTable("FMS_FormSubject");
			this.Property(t => t.ID).HasColumnName("ID");
			this.Property(t => t.OrderTypeID).HasColumnName("OrderTypeID");
			this.Property(t => t.SubjectID).HasColumnName("SubjectID");
		}
	}
}

